package com.catazzz.springbootstudy.common.exception;

import lombok.Data;

/**
 * @作者: Tao
 * @日期: 2025/1/2
 * @时间: 14:13
 * @描述: <br><pre>
 */
@Data
public class ApiException extends RuntimeException {

    private Integer code;

    public ApiException(MessageEnum messageEnum) {
        super(messageEnum.getMessage());
        this.code = messageEnum.getCode();
    }
}
